package com.goodomen.garbage.common.persistence.mapper.system;

import com.goodomen.garbage.common.persistence.model.system.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    /**
     * 查询角色列表
     * @param sysRoleDto
     * @return
     */
    List<SysRole> selectList(@Param("search") SysRole sysRoleDto);

    int deleteByPrimaryKey(Long id);
}